﻿
h2 {
    font-size: 30px;
    text-align: center;
}

.buttn-sub {
    padding: 15px
}

label {
    font-size: 14px;
}

.buttn-sub {
    background-color: #4CAF50; /* Green */
    border: none;
    color: white;
    padding: 8px 16px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition-duration: 0.4s;
    cursor: pointer;
    background-color: white;
    color: black;
    border: 2px solid #4CAF50;
}

    .buttn-sub:hover {
        background-color: #4CAF50;
        color: white;
    }

.container {
    display: block;
    position: relative;
    padding-left: 26px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    /* Hide the browser's default checkbox */
    .container input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 21px;
    width: 21px;
    background-color: white;
}

/* Create a custom radio button */
.checkmark-radio {
    border-radius: 50%;
}

/* On mouse-over, add a grey background color */
.container:hover input ~ .checkmark {
    background-color: #ccc;
}



/* When the checkbox is checked, add a blue background */
.container input:checked ~ .checkmark {
    background-color: #4CAF50;
}

.blue-chek input:checked ~ .checkmark {
    background-color: rgb(51, 122, 183);
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.container input:checked ~ .checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.container .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}



/* Style the indicator (dot/circle) */
.container .checkmark-radio:after {
    top: 7px;
    left: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}


.Trend-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0 15px 0 0;
    width: 1675px;
    margin: 0 auto;
}



.trend-container, .chbox-container {
    display: flex;
    background-color: #EEEEEE;
    height: 50%;
    flex-grow: 1;
    margin: 15px 0 15px 15px;
    padding: 15px;
}

.trend-container {
    flex-basis: 600px;
    flex-direction: column;
    flex-grow: 2;
    max-width: 930px;
}

.container{
    margin-left: 0;
}

.chbox-container {
    flex-basis: 400px;
    display: flex;
    flex-direction: column;
    max-width: 700px;
}

@media(max-width: 1675px) {
    .Trend-content {
        width: auto
    }

    .chbox-container, .trend-container {
        max-width: none
    }
}


@media(max-width: 800px) {
    .buttn-sub{
        width:100%;
    }
}


canvas {
    width: 200px;
    height: 300px;
    max-height:100%;
    max-width:900px;
    margin: 0 auto;
}

.radio-container {
    display: flex;
    flex-direction:row;
    position:relative;

}

input[type=number] {
    width: 20%;
    padding: 5px;
    margin: 15px 0;
    min-width: 70px;
}

#T_scale_max, #P_scale_max {
    margin-left: 15px
}

    input[type=number]:active {
         border: 2px solid #4CAF50;
         outline:none
    }

    input[type=number]:focus {
        border: 2px solid #4CAF50;
        outline: none
    }

#T_scale_min + label, #P_scale_min + label {
    position: absolute;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.5);
    top: 0px;
    left: 0px;
}

#T_scale_max + label, #P_scale_max + label {
    position: absolute;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.5);
    top: 0px;
    left: 23%;
}

.article-line {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.5);
    margin: 15px;
}

.show {
    opacity: 1;
    transition: opacity 400ms;
    display: block;
}

.hide {
    opacity: 0;
    transition: opacity 400ms;
    display: none;
}

select {
    width: 20%;
    padding: 9px;
    margin: 15px 0;
    min-width: 70px;
}

.multiply-icon {
    display:inline-block;
    color: grey;
    transform: rotate(-45deg);
    font-size: 20px;
    position:relative;
}

#date_number {
    width: auto;
}

#start_date + label {
    position: absolute;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.5);
    top: 0px;
    left: 0px;
}

#end_date + label {
    position: absolute;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.5);
    top: 0px;
    left: 195px;
}

#start_date, #end_date {
    padding: 5px;
    margin: 15px 0;
    width: 180px;
}

#end_date {
    margin-left:15px;
}

.line-over-trand {
    display: flex;
    justify-content: center;
    position: relative;
    height: 38px;
}

.arrow-6 {
    margin: 0px;
}

    .arrow-6 svg {
        width: 40px;
        height: auto;
        margin: 0 2rem;
        cursor: pointer;
        overflow: visible;
    }

        .arrow-6 svg polygon,
        .arrow-6 svg path {
            transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
            fill: #4CAF50;
        }

.arrow-6-blue svg polygon,
.arrow-6-blue svg path {
    fill: rgb(51, 122, 183);
}

.arrow-6-grey svg polygon,
.arrow-6-grey svg path {
    fill: grey
}

        .arrow-6 svg:hover polygon,
        .arrow-6 svg:hover path {
           
            fill: #000;
        }

/*        .arrow-6 svg:hover .arrow-6-pl {
            animation: arrow-6-anim 1s cubic-bezier(0.2, 1, 0.3, 1);
            transition: all 1s cubic-bezier(0.2, 1, 0.3, 1);
        }

        .arrow-6 svg:hover .arrow-6-pl-fixed {
                      animation: arrow-6-anim 1s cubic-bezier(0.2, 1, 0.3, 1);
            transition: all 1s cubic-bezier(0.2, 1, 0.3, 1);
        }*/

.arrow-left-anim .arrow-6-pl {
    animation: arrow-6-anim .5s cubic-bezier(0.2, 1, 0.3, 1);
    transition: all .5s cubic-bezier(0.2, 1, 0.3, 1);
}

.arrow-right-anim .arrow-6-pl {
    animation: arrow-6-anim .5s cubic-bezier(0.2, 1, 0.3, 1);
    transition: all .5s cubic-bezier(0.2, 1, 0.3, 1);
}





@keyframes arrow-6-anim {
    0% {
        opacity: 1;
        transform: translateX(0);
    }

    5% {
        transform: translateX(-0.1rem);
    }

    100% {
        transform: translateX(1rem);
        opacity: 0;
    }
}

@keyframes arrow-6-fixed-anim {
    5% {
        opacity: 0;
    }

    20% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

#T_dateNumber, #P_dateNumber, #T_selectDateRange, #P_selectDateRange {
    margin: 0 5px;
    width: auto;
}

    #T_dateNumber, #P_dateNumber{
        width: 55px;
        min-width:0;
    }

    #T_currentDate + label, #P_currentDate + label {
        position: absolute;
        font-size: 12px;
        color: rgba(0, 0, 0, 0.5);
        top: 0px;
        left: 0px;
    }

#T_currentDate, #P_currentDate {
    padding: 0 15px;
}

.range-date-selector {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: absolute;
    top:0;
    right:0;
}

.date-line {
    justify-content: space-evenly
}

input[type=date] {
    padding: 5.5px;
}

.input-caption {
    position: absolute;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.5);
    top: -15px;
    width:100px;
    right: 19px;
}

.date-caprion {
    position: absolute;
    top: -15px;
    left: calc(50% - 163px);
    width: 100px;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.5);
    display: inline-block;
}

.end-date-caprion {
    position: absolute;
    top: -15px;
    left: calc(50% - 84px);
    font-size: 12px;
    color: rgba(0, 0, 0, 0.5);
}
#T_endDate, #P_endDate {
    margin-left: 15px;
}

    #T_endDate + .date-caprion, #P_endDate + .date-caprion {
        left: calc(50% + 10px);
    }

    .TChart, .line-over-trand {
        background: rgba(76, 175, 80, 0.05);
    }

.PChart, .P-line-over-trand {
    background: rgba(51, 122, 183, 0.05);
}
.green {
    color: rgb(76, 175, 80)
}
.blue {
    color: rgb(51, 122, 183)
}

#T_swipeData, #P_swipeData {
    background: none
}

.disabled-arrow {
    display:none;
    position:absolute;
    width:100px;
    height:38px;
    cursor: not-allowed;
    right: calc(50% - 187px);
}

@media(max-width: 700px) {
    #T_selectDateRange, #P_selectDateRange {
        position: relative;
        top: -38px;
    }

    .arrow-6 svg {
        margin: 0 5px;
    }

    .disabled-arrow {
        width: 49px;
        right: calc(50% - 136px);
    }

    .end-date-caprion {
        left: 52px;
    }
}